package cn.cttic.base.api.domain.bo;

import cn.cttic.base.api.domain.BaseRecord;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 操作记录业务对象 base_record
 *
 * @author Times.Studio
 * @date 2024-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseRecord.class, reverseConvertGenerate = false)
public class BaseRecordBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 业务标识
     */
    @NotBlank(message = "业务标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessId;

    /**
     * 操作分类
     */
    @NotBlank(message = "操作分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionType;

    /**
     * 操作序号
     */
    @NotNull(message = "操作序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer actionOrder;

    /**
     * 操作名称
     */
    @NotBlank(message = "操作名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionName;

    /**
     * 操作类型
     */
    @NotBlank(message = "操作类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionParams;

    /**
     * 操作人员
     */
    @NotBlank(message = "操作人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionOperator;

    /**
     * 操作结果
     */
    @NotBlank(message = "操作结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionResult;

    /**
     * 操作时间
     */
    @NotNull(message = "操作时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date actionTime;

    /**
     * 操作结果指向
     */
    @NotBlank(message = "操作结果指向不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionResultRef;

    /**
     * 操作结果内容
     */
    @NotBlank(message = "操作结果内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actionResultContent;


}
